//
//  DECXDriverObj.m
//  DECXInStore
//
//  Created by 李坤 on 2018/9/7.
//  Copyright © 2018年 程强. All rights reserved.
//

#import "DECXDriverObj.h"

@implementation DECXDriverObj
- (instancetype)initWithResponse:(NSDictionary *)dic
{
    if (self = [super init]) {
        _xid = ValidString(dic[@"id"]);
        _user_name = ValidString(dic[@"user_name"]);
        _phone = ValidString(dic[@"phone"]);
        _car_code = ValidString(dic[@"car_code"]);
        _card_no = ValidString(dic[@"card_no"]);
    }
    return self;
}
- (instancetype)initWithOrderResponse:(NSDictionary *)dic
{
    if (self = [super init]) {
        _xid = ValidString(dic[@"id"]);
        _user_name = ValidString(dic[@"name"]);
        _phone = ValidString(dic[@"tel"]);
        _car_code = ValidString(dic[@"car_code"]);
        _card_no = ValidString(dic[@"card_no"]);
    }
    return self;
}
@end
